package b3.widget.home
{
	import b3.widget.basic.*;
	import b3.net.*;
	import b3.scene.home.*;

	import flash.events.*;
	import flash.display.*;
	import flash.geom.*;

	public class FullScreenIcon extends BasicButton
	{
		public function FullScreenIcon()
		{
			var FullScreen:Class = ResourceHelper.getInstance().getClassByName("FullScreenIcon");
			super(FullScreen, null, 15, 28, 28);
			addEventListener(MouseEvent.CLICK, onMouseClick);
		}
		
		private function onMouseClick(event:MouseEvent):void
		{
			stage.fullScreenSourceRect = new Rectangle(0, 0, stage.fullScreenWidth, stage.fullScreenHeight);
			stage.displayState = StageDisplayState.FULL_SCREEN; 
		}
	}
}